import React from "react";
export default class MyFooter extends React.Component {


    render () {

        const { cid } = this.props
        // console.log(this.props.list);
        const { id, goods_count, goods_img, goods_name, goods_price, goods_state } = this.props.list

        return (
            <>
                <div><img src={goods_img} alt="" /></div>
                <div>{goods_name} </div>
                <div>{goods_price}</div>
                <div><input type="checkbox" onChange={this.props.price} onClick={() => cid(id)} checked={goods_state} name="" id="" /> </div>
            </>
        )
    }
}